﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WebReference;


public partial class Admin_Previous_Pages_PreConvConditions : System.Web.UI.Page
{

    Service objService = new Service();

    protected void Page_Load(object sender, EventArgs e)
    {
        bindDataGrid();
    }

    private void bindDataGrid()
    {
        DataSet ds = new DataSet();
        ds = objService.RunSQLQuery("SELECT c.id,ex.ExperimentName,c.conv_Regime,c.bedMedium,c.reactorConfig,c.FeedSystem,c.gasificationMed,c.gasBiomassRatio,c.feedRate_min,c.feedRate_max,c.temp,c.pressure,c.heatRate_min,c.heatRate_max,c.resTime_min,c.resTime_max,c.sweptGasVelocity FROM convconditions as c,experiment as ex where c.id=ex.convcond_fk");
        dgConvConditions.DataSource = ds;
        dgConvConditions.DataBind();
    }
    protected void dgConvConditions_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        dgConvConditions.PageIndex = e.NewPageIndex;
        bindDataGrid();
    }
}
